package cn.bigcontainer.alt.meta.service;

import java.util.List;
import java.util.Map;

import cn.bigcontainer.alt.meta.po.MButton;

public interface MetaBizService {

	List<Map<String, Object>> searchObject(String searchContent, String keyValue);
	
	List<Map<String, Object>> searchProperty(String object, String relation);

	List<Map<String, Object>> searchRelation(String object);
	
	void moveViewProperty(String app, String viewproperty, Integer offset);

	void hideViewProperty(String app, String viewproperty);

	void showViewProperty(String app, String viewproperty, String hidden);

	void deleteViewProperty(String app, String viewproperty, Boolean cascade);

	void resizeViewProperty(String app, String viewproperty, Integer width, Integer height);

	void orderViewProperty(String app, String viewproperty, String ordertype);

	void toggleOrderViewProperty(String app, String viewproperty);

	void unorderViewProperty(String app, String viewproperty);

	void unorderView(String app, String view);

	Map<String, Object> loadViewProperty(String app, String viewproperty);

	void updateViewProperty(String app, String viewproperty, Map<String, Object> req);

	void createViewProperty(String app, String viewproperty, Boolean select, Map<String, Object> req);

	void createViewPropertyByDictionary(String app, String viewproperty, Map<String, Object> req);

	void createViewPropertyByRelation(String app, String viewproperty, Map<String, Object> req);

	void createButton(String app, String view, String button, MButton mButton);

	void moveButton(String app, String button, Integer offset);

	void deleteButton(String app, String button);

	void setListRows(String list, Integer rows);

	void unpage(String list);

}
